#ifndef _MESH_H
#define _MESH_H

#include <memory>
#include <SERender/Resourses/VertexArray.h>

namespace SEngine
{
    class Mesh
    {
    public:
        Mesh(std::unique_ptr<VertexArray> vao) 
            : m_vao(std::move(vao)) {}
        virtual ~Mesh() = default;

        void Bind() { m_vao->Bind(); }
        void Unbind() { m_vao->Unbind(); }

        size_t GetElementSize() { return m_vao->GetElementSize(); }

    private:
        std::unique_ptr<VertexArray> m_vao;
    };
} // namespace SEngine


#endif